package main

import (
	"fmt"
	"github.com/tedcy/fdfs_client"
)

func main() {
	//cli, err := fdfs_client.NewClientWithConfig("/etc/fdfs/client.conf")
	cli, err := fdfs_client.NewClientWithConfig("/home/uos/go/src/myweb/web/test/fdfs.conf")
	if err != nil {
		fmt.Println("初始化客户端错误， err: ", err)
		return
	}

	resp, err := cli.UploadByFilename("/home/uos/go/src/myweb/web/test/tou.jpg")
	fmt.Println(resp, err)
}
